package com.tedu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * Author：毕龙
 * Date: 2022/9/20 9:01
 */
@Data
@Accessors(chain = true)
@TableName("item_cat")
public class ItemCat extends BasePojo {
    @TableId(type = IdType.AUTO)//主键自增
    private Integer id; //定义的主键
    private Integer parentId;
    private String name;
    private boolean status;
    private Integer level;
    @TableField(exist = false)
    private List<ItemCat> children;//放的下个级别下的所有的类别
}
